package com.lzq.train.common.context;

import com.lzq.train.common.resp.MemberLoginResp;

/**
 * 当用户登录成功后，将用户信息放入上下文
 */
public class LoginMemberContext {

    public static ThreadLocal<MemberLoginResp> loginMember = new ThreadLocal<>();

    public static void setMember(MemberLoginResp memberLoginResp) {
        loginMember.set(memberLoginResp);
    }

    public static MemberLoginResp getMember() {
        return loginMember.get();
    }
}
